package com.cory.module.job.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.cory.module.job.domain.entity.JobExcelImportDetail;
import com.cory.module.job.mapper.JobExcelImportDetailMapper;
import com.cory.module.job.service.JobExcelImportDetailService;
import com.cory.boot.base.BaseService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *  服务实现类
 *
 * @author xc
 * @since 2023-05-09
 */
@Service
public class JobExcelImportDetailService extends BaseService<JobExcelImportDetailMapper, JobExcelImportDetail> {

    public List<JobExcelImportDetail> errorList(Integer jobId) {
        return super.list(new QueryWrapper<JobExcelImportDetail>().eq("job_id", jobId).eq("state", 2));
    }

}
